<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        var str='12-56-45-67';
        var arr=str.split('-');
        alert(arr);
    </script>
</head>
<body>

</body>
</html>